Optimal. Leaf size=252 \[ \frac {f \sqrt {a^2+b^2} \text {Li}_2\left (-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d^2}-\frac {f \sqrt {a^2+b^2} \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 d^2}+\frac {\sqrt {a^2+b^2} (e+f x) \log \left (\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}+1\right )}{b^2 d}-\frac {\sqrt {a^2+b^2} (e+f x) \log \left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}+1\right )}{b^2 d}-\frac {a e x}{b^2}-\frac {a f x^2}{2 b^2}-\frac {f \sinh (c+d x)}{b d^2}+\frac {(e+f x) \cosh (c+d x)}{b d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.44, antiderivative size = 252, normalized size of antiderivative = 1.00, number of steps used = 12, number of rules used = 8, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {5565, 3296, 2637, 3322, 2264, 2190, 2279, 2391} \[ \frac {f \sqrt {a^2+b^2} \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d^2}-\frac {f \sqrt {a^2+b^2} \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}\right )}{b^2 d^2}+\frac {\sqrt {a^2+b^2} (e+f x) \log \left (\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}+1\right )}{b^2 d}-\frac {\sqrt {a^2+b^2} (e+f x) \log \left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}+1\right )}{b^2 d}-\frac {a e x}{b^2}-\frac {a f x^2}{2 b^2}-\frac {f \sinh (c+d x)}{b d^2}+\frac {(e+f x) \cosh (c+d x)}{b d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2190
Rule 2264
Rule 2279
Rule 2391
Rule 2637
Rule 3296
Rule 3322
Rule 5565
Rubi steps
\begin {align*} \int \frac {(e+f x) \cosh ^2(c+d x)}{a+b \sinh (c+d x)} \, dx &=-\frac {a \int (e+f x) \, dx}{b^2}+\frac {\int (e+f x) \sinh (c+d x) \, dx}{b}+\frac {\left (a^2+b^2\right ) \int \frac {e+f x}{a+b \sinh (c+d x)} \, dx}{b^2}\\ &=-\frac {a e x}{b^2}-\frac {a f x^2}{2 b^2}+\frac {(e+f x) \cosh (c+d x)}{b d}+\frac {\left (2 \left (a^2+b^2\right )\right ) \int \frac {e^{c+d x} (e+f x)}{-b+2 a e^{c+d x}+b e^{2 (c+d x)}} \, dx}{b^2}-\frac {f \int \cosh (c+d x) \, dx}{b d}\\ &=-\frac {a e x}{b^2}-\frac {a f x^2}{2 b^2}+\frac {(e+f x) \cosh (c+d x)}{b d}-\frac {f \sinh (c+d x)}{b d^2}+\frac {\left (2 \sqrt {a^2+b^2}\right ) \int \frac {e^{c+d x} (e+f x)}{2 a-2 \sqrt {a^2+b^2}+2 b e^{c+d x}} \, dx}{b}-\frac {\left (2 \sqrt {a^2+b^2}\right ) \int \frac {e^{c+d x} (e+f x)}{2 a+2 \sqrt {a^2+b^2}+2 b e^{c+d x}} \, dx}{b}\\ &=-\frac {a e x}{b^2}-\frac {a f x^2}{2 b^2}+\frac {(e+f x) \cosh (c+d x)}{b d}+\frac {\sqrt {a^2+b^2} (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d}-\frac {\sqrt {a^2+b^2} (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 d}-\frac {f \sinh (c+d x)}{b d^2}-\frac {\left (\sqrt {a^2+b^2} f\right ) \int \log \left (1+\frac {2 b e^{c+d x}}{2 a-2 \sqrt {a^2+b^2}}\right ) \, dx}{b^2 d}+\frac {\left (\sqrt {a^2+b^2} f\right ) \int \log \left (1+\frac {2 b e^{c+d x}}{2 a+2 \sqrt {a^2+b^2}}\right ) \, dx}{b^2 d}\\ &=-\frac {a e x}{b^2}-\frac {a f x^2}{2 b^2}+\frac {(e+f x) \cosh (c+d x)}{b d}+\frac {\sqrt {a^2+b^2} (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d}-\frac {\sqrt {a^2+b^2} (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 d}-\frac {f \sinh (c+d x)}{b d^2}-\frac {\left (\sqrt {a^2+b^2} f\right ) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {2 b x}{2 a-2 \sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{b^2 d^2}+\frac {\left (\sqrt {a^2+b^2} f\right ) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {2 b x}{2 a+2 \sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{b^2 d^2}\\ &=-\frac {a e x}{b^2}-\frac {a f x^2}{2 b^2}+\frac {(e+f x) \cosh (c+d x)}{b d}+\frac {\sqrt {a^2+b^2} (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d}-\frac {\sqrt {a^2+b^2} (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 d}+\frac {\sqrt {a^2+b^2} f \text {Li}_2\left (-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b^2 d^2}-\frac {\sqrt {a^2+b^2} f \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b^2 d^2}-\frac {f \sinh (c+d x)}{b d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.91, size = 258, normalized size = 1.02 \[ \frac {2 \sqrt {a^2+b^2} \left (-2 d e \tanh ^{-1}\left (\frac {a+b e^{c+d x}}{\sqrt {a^2+b^2}}\right )+f \text {Li}_2\left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}-a}\right )-f \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )+f (c+d x) \log \left (\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}+1\right )-f (c+d x) \log \left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}+1\right )+2 c f \tanh ^{-1}\left (\frac {a+b e^{c+d x}}{\sqrt {a^2+b^2}}\right )\right )+a (c+d x) (c f-d (2 e+f x))+2 b d (e+f x) \cosh (c+d x)-2 b f \sinh (c+d x)}{2 b^2 d^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.66, size = 742, normalized size = 2.94 \[ \frac {b d f x + b d e + {\left (b d f x + b d e - b f\right )} \cosh \left (d x + c\right )^{2} + {\left (b d f x + b d e - b f\right )} \sinh \left (d x + c\right )^{2} + 2 \, {\left (b f \cosh \left (d x + c\right ) + b f \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} {\rm Li}_2\left (\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) + {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b} + 1\right ) - 2 \, {\left (b f \cosh \left (d x + c\right ) + b f \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} {\rm Li}_2\left (\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) - {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b} + 1\right ) - 2 \, {\left ({\left (b d e - b c f\right )} \cosh \left (d x + c\right ) + {\left (b d e - b c f\right )} \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} \log \left (2 \, b \cosh \left (d x + c\right ) + 2 \, b \sinh \left (d x + c\right ) + 2 \, b \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} + 2 \, a\right ) + 2 \, {\left ({\left (b d e - b c f\right )} \cosh \left (d x + c\right ) + {\left (b d e - b c f\right )} \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} \log \left (2 \, b \cosh \left (d x + c\right ) + 2 \, b \sinh \left (d x + c\right ) - 2 \, b \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} + 2 \, a\right ) + 2 \, {\left ({\left (b d f x + b c f\right )} \cosh \left (d x + c\right ) + {\left (b d f x + b c f\right )} \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} \log \left (-\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) + {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b}\right ) - 2 \, {\left ({\left (b d f x + b c f\right )} \cosh \left (d x + c\right ) + {\left (b d f x + b c f\right )} \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} \log \left (-\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) - {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b}\right ) + b f - {\left (a d^{2} f x^{2} + 2 \, a d^{2} e x\right )} \cosh \left (d x + c\right ) - {\left (a d^{2} f x^{2} + 2 \, a d^{2} e x - 2 \, {\left (b d f x + b d e - b f\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )}{2 \, {\left (b^{2} d^{2} \cosh \left (d x + c\right ) + b^{2} d^{2} \sinh \left (d x + c\right )\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (f x + e\right )} \cosh \left (d x + c\right )^{2}}{b \sinh \left (d x + c\right ) + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.17, size = 901, normalized size = 3.58 \[ -\frac {a f \,x^{2}}{2 b^{2}}-\frac {a e x}{b^{2}}+\frac {\left (d f x +d e -f \right ) {\mathrm e}^{d x +c}}{2 d^{2} b}+\frac {\left (d f x +d e +f \right ) {\mathrm e}^{-d x -c}}{2 d^{2} b}-\frac {2 a^{2} e \arctanh \left (\frac {2 b \,{\mathrm e}^{d x +c}+2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{d \,b^{2} \sqrt {a^{2}+b^{2}}}-\frac {2 e \arctanh \left (\frac {2 b \,{\mathrm e}^{d x +c}+2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{d \sqrt {a^{2}+b^{2}}}+\frac {a^{2} f \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) x}{d \,b^{2} \sqrt {a^{2}+b^{2}}}+\frac {a^{2} f \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) c}{d^{2} b^{2} \sqrt {a^{2}+b^{2}}}-\frac {a^{2} f \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) x}{d \,b^{2} \sqrt {a^{2}+b^{2}}}-\frac {a^{2} f \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) c}{d^{2} b^{2} \sqrt {a^{2}+b^{2}}}+\frac {a^{2} f \dilog \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right )}{d^{2} b^{2} \sqrt {a^{2}+b^{2}}}-\frac {a^{2} f \dilog \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right )}{d^{2} b^{2} \sqrt {a^{2}+b^{2}}}+\frac {f \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) x}{d \sqrt {a^{2}+b^{2}}}+\frac {f \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) c}{d^{2} \sqrt {a^{2}+b^{2}}}-\frac {f \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) x}{d \sqrt {a^{2}+b^{2}}}-\frac {f \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) c}{d^{2} \sqrt {a^{2}+b^{2}}}+\frac {f \dilog \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right )}{d^{2} \sqrt {a^{2}+b^{2}}}-\frac {f \dilog \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right )}{d^{2} \sqrt {a^{2}+b^{2}}}+\frac {2 a^{2} f c \arctanh \left (\frac {2 b \,{\mathrm e}^{d x +c}+2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{d^{2} b^{2} \sqrt {a^{2}+b^{2}}}+\frac {2 f c \arctanh \left (\frac {2 b \,{\mathrm e}^{d x +c}+2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{d^{2} \sqrt {a^{2}+b^{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {1}{2} \, {\left (4 \, {\left (a^{2} e^{c} + b^{2} e^{c}\right )} \int \frac {x e^{\left (d x\right )}}{b^{3} e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a b^{2} e^{\left (d x + c\right )} - b^{3}}\,{d x} - \frac {{\left (a d^{2} x^{2} e^{c} - {\left (b d x e^{\left (2 \, c\right )} - b e^{\left (2 \, c\right )}\right )} e^{\left (d x\right )} - {\left (b d x + b\right )} e^{\left (-d x\right )}\right )} e^{\left (-c\right )}}{b^{2} d^{2}}\right )} f - \frac {1}{2} \, e {\left (\frac {2 \, {\left (d x + c\right )} a}{b^{2} d} - \frac {e^{\left (d x + c\right )}}{b d} - \frac {e^{\left (-d x - c\right )}}{b d} - \frac {2 \, \sqrt {a^{2} + b^{2}} \log \left (\frac {b e^{\left (-d x - c\right )} - a - \sqrt {a^{2} + b^{2}}}{b e^{\left (-d x - c\right )} - a + \sqrt {a^{2} + b^{2}}}\right )}{b^{2} d}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\mathrm {cosh}\left (c+d\,x\right )}^2\,\left (e+f\,x\right )}{a+b\,\mathrm {sinh}\left (c+d\,x\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________